package com.app.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.app.entity.ResidentialComplaint;
import com.app.entity.ResidentialGuarantee;

public interface UserComplaintDao {

	/**
	 * 插入用户投诉信息
	 * @param residentialComplaint
	 * @return
	 */
	int insertUserComplaint(ResidentialComplaint residentialComplaint);

    /**
     * 跟新投诉状态信息
     * @param residentialComplaint
     * @return
     */
	int updateUserComplaint(ResidentialComplaint residentialComplaint);
	/**
	 * 删除此投诉信息
	 * @param residentialComplaint
	 * @return
	 */
	int deleteUserComplaint(ResidentialComplaint residentialComplaint);

    /**
     * 投诉分页数据投诉
     * @param residentialComplaint
     * @param offset
     * @param pageSize
     * @return
     */
	List<ResidentialComplaint> selectUserComplaintList(@Param("residentialComplaint") ResidentialComplaint residentialComplaint,@Param("offset") int offset,@Param("pageSize") int pageSize);
	/**
	 * 投诉分页的数据的数量
	 * @param residentialComplaint
	 * @return
	 */
	int selectUserComplaintListNum(@Param("residentialComplaint") ResidentialComplaint residentialComplaint);
}
